//package com.WaVel.config;
//
//import com.Emplyment.properties.AliOssProperties;
//import com.Emplyment.properties.AliPayEProperties;
//import com.Emplyment.properties.AliPayProperties;
//import com.Emplyment.util.AliPay;
//import com.alipay.easysdk.kernel.Config;
//import lombok.Data;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@Data
//public class AlipayConfig {
//
//    @Bean
//    public Config config(AliPayEProperties aliPayEProperties) {
//        Config config = new Config();
//        config.protocol = aliPayEProperties.getProtocol();
//        config.gatewayHost = aliPayEProperties.getGatewayHost();
//        config.signType = aliPayEProperties.getSignType();
//        config.appId = aliPayEProperties.getAppId();
//        config.merchantPrivateKey = aliPayEProperties.getMerchantPrivateKey();
//        config.alipayPublicKey = aliPayEProperties.getAlipayPublicKey();
//
//        config.notifyUrl = aliPayEProperties.getNotifyUrl();
//        config.encryptKey = "";
//        return config;
//    }
//
//}
